Crate fluent_localization_loader
source ·Structs
- Holder to hold all the loaded bundled for localizations, as well as the currently configured default language
- Basic wrapper to hold a resource and its original filename
Constants
Functions
- The base path localizations will be loaded from, this is controlled by the
TRANSLATION_DIR
environment variable; Will default to thelocalizations
subfolder of the current working directory if not set - Get the current default language, this is controlled by the
DEFAULT_LANG
environment variable. Will default toDEFAULT
if not set - Load all fluent resource files from a directory and returns them. Only files with an .ftl extension will be loaded, does not load files from subfolders